package com.example.cardgame

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        val nameTextView: TextView = findViewById(R.id.nameTextView)
        val genderTextView: TextView = findViewById(R.id.genderTextView)
        val phoneTextView: TextView = findViewById(R.id.phoneTextView)
        val highScoreTextView: TextView = findViewById(R.id.highScoreTextView)
        val editInfoButton: Button = findViewById(R.id.editInfoButton)
        val playGameButton: Button = findViewById(R.id.playGameButton)

        // Dummy data for demonstration
        nameTextView.text = "Name: John Doe"
        genderTextView.text = "Gender: Male"
        phoneTextView.text = "Phone: 123-456-7890"
        highScoreTextView.text = "High Score: 100"

        editInfoButton.setOnClickListener {
            val intent = Intent(this, InfoActivity::class.java)
            startActivity(intent)
        }

        playGameButton.setOnClickListener {
            val intent = Intent(this, ThirdActivity::class.java)
            startActivity(intent)
        }
    }
}